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

Layer name restrictiveness #25

Open
trasch opened this issue Jan 22, 2018 · 0 comments
Open

Layer name restrictiveness #25

trasch opened this issue Jan 22, 2018 · 0 comments

Comments

@trasch
Copy link
Contributor

trasch commented Jan 22, 2018

In tilestrata/lib/TileLayer.js:7 is this layer name validation:

	if (!/^[a-zA-Z0-9_\-]+$/.test(name)) {
		throw new Error('Invalid layer name "' + name + '" (must match /^[a-zA-Z0-9_\-]+$)');
	}

I wonder if there is a reason that this is so restrictive and doesn't allow for example ',' (comma) or ';' (semicolon)? I think the URI spec allows them, as far as I understand it (?)

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