Replace - with _ in hashtags.
This commit is contained in:
parent
5f078b4e54
commit
46b863fa36
@ -324,7 +324,7 @@
|
|||||||
;; Landmark.
|
;; Landmark.
|
||||||
"?:[{nearbydistance} miles from {nearbylandmark} ]"
|
"?:[{nearbydistance} miles from {nearbylandmark} ]"
|
||||||
;; Hashtag based on registration.
|
;; Hashtag based on registration.
|
||||||
"?:[#{registration} |#{militaryregistration} ]"
|
"?:[#{registration|hashtag} |#{militaryregistration|hashtag} ]"
|
||||||
;; tar1090 link.
|
;; tar1090 link.
|
||||||
"https://tar1090.adsbexchange.com/?icao={icao}&zoom=13")]))
|
"https://tar1090.adsbexchange.com/?icao={icao}&zoom=13")]))
|
||||||
|
|
||||||
|
@ -63,7 +63,8 @@
|
|||||||
(if (re-find #"^[FHLMNRSX](\b|[A-Z0-9])" s)
|
(if (re-find #"^[FHLMNRSX](\b|[A-Z0-9])" s)
|
||||||
(str "an " s)
|
(str "an " s)
|
||||||
(str "a " s))
|
(str "a " s))
|
||||||
(str "an " s)))})
|
(str "an " s)))
|
||||||
|
:hashtag #(string-replace % #"-" "_")})
|
||||||
|
|
||||||
|
|
||||||
(defn apply-filter [s filter-name]
|
(defn apply-filter [s filter-name]
|
||||||
|
Loading…
Reference in New Issue
Block a user