Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ensure_sorted.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def add_app(self, app_str: str):
if len(matches) != 1:
raise RuntimeError("These should be only one match")
app_name = matches[0]
app_name = re.sub(r'[\x00-\x1f\x7f-\x9f]', '', app_name)
# make it lower case and append it
self.apps.append(app_name.lower())

Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
fetch( 'https://raw.githubusercontent.com/offa/android-foss/master/README.md' )
.then( response => response.text() )
.then( data => {
data = data.replace( /[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]/g, '' );
document.querySelector( 'main' ).innerHTML = marked.parse( data );
})
.catch( error => console.error( 'Error:', error ) );
Expand Down
Loading