Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ease
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
ease
Commits
0cbcc202
Commit
0cbcc202
authored
Nov 05, 2012
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify util functions to allow apostrophes
parent
62ea08b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
tmpfile
+2
-2
util_functions.py
+1
-1
No files found.
tmpfile
View file @
0cbcc202
this is a aubsmission with some spelling errors thrown in and grammaris not so great eithwer i dont think its very good .
\ No newline at end of file
I didn't know
\ No newline at end of file
util_functions.py
View file @
0cbcc202
...
...
@@ -19,7 +19,7 @@ def sub_chars(string):
Removes all non-punctuation, digit, or letter characters.
Returns sanitized string.
"""
sub_pat
=
r"[^A-Za-z\.\?!,]"
sub_pat
=
r"[^A-Za-z\.\?!,
';:
]"
char_pat
=
r"\."
com_pat
=
r","
ques_pat
=
r"\?"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment