Skip to content

Commit

Permalink
also include dash
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Jul 5, 2024
1 parent a244b56 commit 922cc14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/squaremap/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const parseTooltip = (tooltip: string) => {

const out: ParsedTooltip = { town }

const nationMatch = cleaned.match(/\((?:.* of )?([A-Za-z\u00C0-\u017F_]+)\)/)
const nationMatch = cleaned.match(/\((?:.* of )?([A-Za-z\u00C0-\u017F-_]+)\)/)
const nation = nationMatch ? nationMatch[1] : null

if (nation) out['nation'] = nation
Expand Down

0 comments on commit 922cc14

Please sign in to comment.