Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcode detection? #77

Open
hornetnz opened this issue Jan 15, 2019 · 1 comment
Open

Shortcode detection? #77

hornetnz opened this issue Jan 15, 2019 · 1 comment

Comments

@hornetnz
Copy link

Our data can be imported from other sources, some of which use shortcodes and others dont. We were originally 'detecting' shortcodes if it was >= 2 characters, but then noticed other countries have 3-char codes...and then other regions full-names that are only 3 chars. Do you know the best method to detect if saved data is shortcode?

@hornetnz
Copy link
Author

Also, is there a way to read the country/region array to find a match on the saved value via JS if there aren't CRS form fields loaded on the page?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant