File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed
Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
55and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
66
7+ ## [ unreleased]
8+ ### Added
9+ - Reimplement ` String.split_at/2 ` to make sure Unicode library isn't compiled
10+
711## [ 0.30.0] - 2017-08-15
812
913### Added
Original file line number Diff line number Diff line change @@ -198,4 +198,21 @@ defmodule ElixirScript.String do
198198 def valid? ( str ) do
199199 is_binary ( str )
200200 end
201+
202+ def split_at ( value , position ) when position < 0 do
203+ position = length ( value ) + position
204+
205+ if position >= 0 do
206+ split_at ( value , position )
207+ else
208+ { "" , value }
209+ end
210+ end
211+
212+ def split_at ( value , position ) do
213+ {
214+ value . substring ( 0 , position ) ,
215+ value . substring ( position ) ,
216+ }
217+ end
201218end
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ defmodule ElixirScript.Mixfile do
44 def project do
55 [
66 app: :elixir_script ,
7- version: "0.30.0 " ,
7+ version: "0.31.0-dev " ,
88 elixir: "~> 1.5" ,
99 elixirc_paths: elixirc_paths ( Mix . env ) ,
1010 deps: deps ( ) ,
You can’t perform that action at this time.
0 commit comments