Posts by Vítor Ferragini • 106 points
4 posts
-
0
votes2
answers790
viewsA: Check with REGEX VBA if phone is fixed or mobile (checking 3rd number in regex)
To check only the third digit, without worrying about the validation of the full number (assuming it has been done before), you can use the following Regex: /^..(8|9)/g The circumflex detects the…
-
2
votes1
answer322
viewsA: How to write in json without overwriting?
To add content to the file without overwriting, you should use the function appendFile(). The function writeFile() will always replace the file with a new. const fs = require('fs'); const file =…
-
1
votes1
answer69
viewsA: Server does not start in ruby
First, check the Gemfile at the root of your application and see if it is specifying the Gem correctly: gem 'sqlite3 (~> 1.4)' Then try to turn the command bundle install in the terminal to…
-
3
votes1
answer77
viewsA: Checkbox disappearing when click
I made some adjustments and it seems to be working the way it should. HTML was broken (for example, </input> where it should be </label>, <tr> without closing, etc). The function…