Comments (2)
Thank you for your proposed change.
I'm not quite sure why you get a syntax error, could you please show the exact error you get or tell how to reproduce the issue?
For me the current code works and usually a literal space in a regular expression should work.
from er-wizard-wireguard.
I did, and now I no longer get any syntax errors. You're of course right that a literal spaced, like any liter al characters, is perfectly valid in a regular expression.
The \s is not the same though, as it will match any whitespace character. Not that that fact should matter here.
I did hours of debugging before I found that those two lines gave a syntax error on my system,m (ER Lite with 2.0.9-hotfix2). As strange as it might seem, after making those changes it worked just fine.
Now it's back working again, even without those changes, so I don't know what caused this and I see no point in digging deeper to find out either. The only thing I've changed on my side is that I've upgraded to 2.0.9-hotfix4.
Thanks for making this available!
from er-wizard-wireguard.
Related Issues (20)
- ER-wizard can't detect public/private-key if a path to the private key and not the key itselfs is given in configuration. HOT 2
- Wizard seems to nuke configurations on update. HOT 3
- Firewall Policies are changed when new peer are added HOT 1
- Generating new Config removes all succeeding peers HOT 11
- Setup Script wont stay enabled HOT 4
- Invalid QR Code HOT 2
- "Latest handshake" is always modulo one hour
- BYO Private Key HOT 2
- Fails to download WireGuard package HOT 2
- All WireGuard config removed after EdgeOS update HOT 6
- QR code seems incomplete HOT 4
- Apply function is deleting some wireguard interface settings HOT 3
- Is this package still being maintained? HOT 2
- update Readme.md with an note where to get private key HOT 1
- Remove Peer doesn't actually remove the peer HOT 1
- Public QR image is chopped off
- Peer entries remain on removal
- Regenerating Config of existing peer entry adds new entry
- Please, how to execute the wireguard.js script correctly?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from er-wizard-wireguard.