shabados / database

A digital representation of Sikh Bani and other Panthic texts with a public logbook of sangat-sourced corrections.
https://docs.shabados.com/database
GNU General Public License v3.0
63 stars 24 forks source link

fix(data): remove duplicate whitespace #1874

Closed bhajneet closed 2 years ago

bhajneet commented 2 years ago

Summary

I checked for double spaces and triple spaces, etc. Then used the following regex to clean up in VS Code

Find:

("gurmukhi": \{\n +".+": ")(.*?)( ){2}(.*?)(")

Replace:

$1$2 $4$5

$2 and $4 are the remaining gurmukhi string. $1 and $5 are the json around it to find gurmukhi lines.

Potential issues

Duration

Less than 10 minutes