aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-06-15 12:11:31 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-06-16 14:38:18 +0100
commit89bfe7226a2c2202e8151aa32c7648dad9f9f038 (patch)
treec6273b80a1223f84830e697e7473b01a47c9253a
parent9553c8daac73f06af704a87ace7294f751a77b8f (diff)
[Buckinghamshire] Spot lights e.g. ending with "A"
-rw-r--r--web/cobrands/buckinghamshire/assets.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/cobrands/buckinghamshire/assets.js b/web/cobrands/buckinghamshire/assets.js
index 1030d11db..2ac084193 100644
--- a/web/cobrands/buckinghamshire/assets.js
+++ b/web/cobrands/buckinghamshire/assets.js
@@ -63,7 +63,7 @@ var labeled_defaults = $.extend(true, {}, defaults, {
stylemap: streetlight_stylemap,
asset_item_message: 'You can pick a <b class="asset-spot">ITEM</b> from the map &raquo;',
construct_asset_name: function(id) {
- var code = id.replace(/[0-9]/g, '');
+ var code = id.replace(/[O0-9]+[A-Z]*/g, '');
return {id: id, name: streetlight_code_to_type[code]};
},
actions: {