Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
retypos-adapter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
eterfund
retypos-adapter
Commits
d5a80353
Commit
d5a80353
authored
Sep 18, 2018
by
Георгий Попов
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error when context contains -- character
parent
0c383f68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
TyposClientInterface.php
src/TyposClientInterface.php
+4
-0
No files found.
src/TyposClientInterface.php
View file @
d5a80353
...
...
@@ -138,6 +138,10 @@ abstract class TyposClientInterface
private
function
replaceTypoInArticle
(
string
$typo
,
string
$corrected
,
string
$context
,
TyposArticle
$article
)
{
$lastException
=
null
;
// Replace -- to - in context string
// BUG# 12799
$context
=
str_replace
(
"
\xe2\x80\x94
"
,
"-"
,
$context
);
// Trying to replace typo in text
try
{
error_log
(
"Trying to find a typo in article text..."
);
...
...
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