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

The configuration information may has a syntax error. Are you sure to submit? #676

Closed
hxy1991 opened this issue Jan 22, 2019 · 2 comments
Closed
Assignees
Labels
kind/bug Category issues or prs related to bug.

Comments

@hxy1991
Copy link
Collaborator

hxy1991 commented Jan 22, 2019

Content:

spring.datasource.url=jdbc:mysql://localhost:3306/test?useSSL=false
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.initial-size=10
spring.datasource.max-active=20

image

image

@nacos-bot nacos-bot added the kind/bug Category issues or prs related to bug. label Jan 22, 2019
@YoReay
Copy link

YoReay commented Jan 23, 2019

validateProperties(str = '') { const reg = /^[^=]+=[^=]+$/; return str .replace('\n\r', '\n') .split('\n') .every(_str => reg.test(_str.trim())); },
=>
validateProperties(str = '') { const reg = /^[^=]+=[\S]+$/; return str .replace('\n\r', '\n') .split('\n') .every(_str => reg.test(_str.trim())); },

@YoReay
Copy link

YoReay commented Jan 23, 2019

It is caused by a regular expression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Category issues or prs related to bug.
Projects
None yet
Development

No branches or pull requests

4 participants